Keycloak REST Services 1.2.0.Final

Path: / admin / realms / {realm} / clients / {app-name} / scope-mappings / clients-by-id / {id}

Get the roles associated with a client's scope for a specific client.

Path parameters:
realm - realm name (not id!)
app-name -
id -

Sub-Resources
Resources
NameDescription
availableThe available client-level roles that can be associated with the client's scope
compositeGet effective client roles that are associated with the client's scope for a specific client.

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}Get the roles associated with a client's scope for a specific client.
POST /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}Add client-level roles to the client's scope
DELETE /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}Remove client-level roles from the client's scope.

Method Detail

GET /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}

Get the roles associated with a client's scope for a specific client.

HTTP Example:
GET /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}
API Example:

ScopeMappedClientResource.getClientScopeMappings({'realm': /* name realm name (not id!) */,
  'app-name': /* name */,
  'id': …});

Output:
List<RoleRepresentation> -
Produces:
application/json

POST /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}

Add client-level roles to the client's scope

HTTP Example:
POST /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}
API Example:

ScopeMappedClientResource.addClientScopeMapping({'realm': /* name realm name (not id!) */,
  'app-name': /* name */,
  'id': …,
  '$entity': /* roles */});

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json

DELETE /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}

Remove client-level roles from the client's scope.

HTTP Example:
DELETE /admin/realms/{realm}/clients/{app-name}/scope-mappings/clients-by-id/{id}
API Example:

ScopeMappedClientResource.deleteClientScopeMapping({'realm': /* name realm name (not id!) */,
  'app-name': /* name */,
  'id': …,
  '$entity': /* roles */});

Input:
List<RoleRepresentation>
Output:
void
Consumes:
application/json

Keycloak REST Services 1.2.0.Final